<template>
    <div class="header-return">
        <i @click="headereturn()" class=" headericc iconfont icon-jiantou"></i>
        <span>{{titleParams}}</span>
    </div>
</template>

<script>
    export default {
        name: "headtop",
        props:["titleParams",'jumpName']
       ,
        data(){
            return{

            }
        },
        methods:{
            headereturn(){
                if(this.jumpName == 'playGame'){
                    this.$router.push('/playGame');
                }else{
                    this.$router.go(-1)
                }
            }
        },
        mounted(){

        }
    }
</script>

<style scoped>
    @import url("../../assets/font/iconfont.css");
    .header-return{
        width: 100%;
        padding: 12px 0 0 0;
        height: 56px;
        text-align: center;
        position: relative;
        background:rgba(255,255,255,1);
    }
    .header-return span{
        margin-top: 12px;
        font-size:16px;
        font-family:PingFangSC-Semibold,PingFang SC;
        font-weight:600;
        color:rgba(51,51,51,1);
        line-height:22px;
    }
    .headericc{
        font-size: 18px;
        color: #000000;
        font-weight: 900;
        position: absolute;
        top: 12px;
        left: 14px;
    }
</style>
